import React from 'react';

import Constants from '../../common/Constants';
import BaseAction from '../common/BaseAction';

export default class HeartVolunteerRequestPostContentAction extends BaseAction {
  constructor(props) {
    super(props);

    this.moduleType = Constants.MODULE_TYPE.HEART;
    this.name = "HeartVolunteerRequestPostContentAction";
  }

  finish(data, isSucceed) {
    let postData = null;
    if(isSucceed) {
      postData = data;
    }
    this.caller.setState({
      postData: postData,
      isResponeUpdate: true,
    })
  }
}
